import { message, Modal } from "ant-design-vue";

export function handlerDel(id, title) {
  Modal.confirm({
    title: `确定要删除该${title}吗？`,
    content: "删除后将无法恢复，请谨慎操作。",
    onOk() {
      // 处理删除逻辑
      //   const { status } = await handleDelete(id);
      //   if (status == 200) message.success("删除成功");
    },
    onCancel() {
      // 处理取消逻辑
      message.info("已取消删除");
    },
  });
}
